/*
 * @Author: zxc
 * @Date: 2020-11-04 15:31:28
 * @LastEditTime: 2020-11-04 15:41:08
 * @LastEditors: zxc
 * @Description:
 */
import { unref } from "vue"
export function getRef(origin: any) {
  const getUnRef = unref(origin)
  if (!getUnRef) {
    throw new Error("you want to get ref is null!")
  }
  return getUnRef.$
}
